package com.metaverse.backend.domain;

import com.metaverse.backend.annotations.ExcelTitle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Entity
@Table(indexes = {
        @Index(columnList = "roomId"),
        @Index(columnList = "msg_type"),
})
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ExcelTitle("点赞数据")
@ApiModel("点赞数据")
public class LiveLike extends BaseEntity{

   @ApiModelProperty("房间ID")
   private String roomId;//":1649068964, //  房间ID
   @ApiModelProperty("局号")
   private String roundId;


   @ApiModelProperty("日志类型")
   private String msg_type;//":1649068964, //  日志类型

   @ApiModelProperty("类型id")
   private String msg_id;//": "123456781",  // string类型id
   @ApiModelProperty("点赞用户的加密openid，当前其实没有加密")
   private String sec_openid;//":"xxxx",    // 点赞用户的加密openid，当前其实没有加密
   @ApiModelProperty("点赞数量")
   private Integer like_num;//":"xxxx",       //  点赞数量，上游2s合并一次数据
   @ApiModelProperty("用户头像")
   private String avatar_url;//":"xxx",     // 点赞用户头像
   @ApiModelProperty("用户昵称(不加密)")
   private String nickname;//":"xxxx",      // 赞用户昵称(不加密)
   @ApiModelProperty("点赞毫秒级时间戳")
   private Long timestamp;//":1649068964, //  点赞毫秒级时间戳

   @ApiModelProperty("发生时间")
   private LocalDateTime happenTime;

}
